    <div id="boxpathpage" style="margin:0px;">
    	<div><img src="images/home.png" width="24" height="24" style="margin-right:5px;" align="left" />
        <div style="padding-top:7px;">Cấu hình hệ thống</div>
        </div>
    </div>
     <div style="clear:both; height:10px;"></div>       
      <ul class="tabs">
        <li><a href="#tab1">Cấu hình chung</a></li>
        <li><a href="#tab3">Cấu hình hình ảnh</a></li>
        <li><a href="#tab4">Cấu hình file upload</a></li>
        <li><a href="#tab5">Cấu hình website</a></li>

    </ul>
    <div class="tab_container">
    <!-- START BLOCK : msg -->
    	<div>{msg}</div>
     <!-- END BLOCK : msg -->
    <form name="form1" method="post" action="" enctype="multipart/form-data">
<input type="hidden" name="gone" value="1" />
        <div id="tab1" class="tab_content">
           <table width="100%" border="0" cellpadding="4">
             <tr>
              <td width="160" align="left" valign="top"><strong>T&#234;n website</strong></td>
              <td height="20" align="left"><input name="setting_item[site_name]" type="text"  class="textbox" value="{site_name}"/></td>
            </tr>
            <tr>
              <td height="20" align="left" valign="top"><strong>Email li&#234;n h&#7879;</strong></td>
              <td height="20" align="left"><input type="text" name="setting_item[site_email]"  class="textbox"  value="{site_email}"/> (Kh&#225;ch h&#224;ng li&#234;n h&#7879;) </td>
            </tr>
             <tr>
              <td height="20" align="left" valign="top"><strong>H&#236;nh n&#7873;n</strong></td>
              <td height="20" align="left">{bgimage}<input name="bgimage" type="file"  size="40" /></td>
            </tr>
            <tr>
              <td rowspan="2" align="left" valign="top"><strong>Ch&#7871; &#273;&#7897; ho&#7841;t &#273;&#7897;ng</strong></td>
              <td height="20" align="left"><input name="setting_item[active_site]" type="radio" value="1" {active_yes}/>Ho&#7841;t &#273;&#7897;ng
              <input  type="radio" name="setting_item[active_site]" value="0" {active_no} />Ng&#7915;ng ho&#7841;t &#273;&#7897;ng</td>
            </tr>
            <tr>
              <td height="20" align="left">{active_site}</td>
            </tr>
            <tr style="padding-top:5px">
              <td width="160" align="left" valign="top" ><strong>Keywords</strong></td>
              <td width="863" align="left"><textarea name="setting_item[site_keywords]" id="site_keywords" class="textarea" rows="5" >{site_keywords}</textarea></td>
            </tr>
            <tr>
              <td align="left" valign="top"><strong>Description</strong></td>
              <td align="left"><textarea name="setting_item[site_description]" id="site_description" class="textarea" rows="5" >{site_description}</textarea></td>
            </tr>
             <tr>
                <td>&nbsp;</td>
                <td><input type="submit" name="button" id="button" value="Lưu" class="btnadmin" style="padding-left:10px; padding-right:10px;" />
                  <input type="submit" name="button2" id="button2" value="Bỏ qua" class="btnadmin" /></td>
             </tr>
          </table>

</div>
        
         <div id="tab3" class="tab_content">
            <table width="100%" border="0">
              <tr>
                <td width="250" align="left"><strong>Upload image path</strong></td>
                <td  align="left"><input type="text" name="setting_item[upload_image_path]" class="textbox"  value="{upload_image_path}" /></td>
              </tr>
              <tr>
                <td align="left"><strong>Max. size (to create normal thumbnail)</strong></td>
                <td align="left"><input type="text" name="setting_item[max_image_width]" class="textbox"  value="{max_image_width}" /></td>
              </tr>
              <tr>
                <td align="left"><strong>Auto normal thumbnail size</strong></td>
                <td align="left"><input type="text" name="setting_item[max_thumb_width]"  class="textbox"  value="{max_thumb_width}"  />
                    </td>
              </tr>
              <tr>
                <td align="left"><strong>Auto small thumbnail size</strong></td>
                <td align="left"><input type="text" name="setting_item[auto_thumbnail_dimension]"  class="textbox"  value="{auto_thumbnail_dimension}" />
                   </td>
              </tr>
              <tr>
                <td align="left"><strong>Chèn logo vào ảnh</strong></td>
                <td align="left">{watermark_image}<br /><input type="file" name="watermark_image" /></td>
              </tr>
              <tr>
                <td align="left"><strong>Chèn chữ vào ảnh</strong></td>
                <td align="left"><input type="text" name="setting_item[watermark_text]"  class="textbox"  value="{watermark_text}" /></td>
              </tr>
               <tr>
                <td>&nbsp;</td>
                <td><input type="submit" name="button" id="button" value="Lưu" class="btnadmin" style="padding-left:10px; padding-right:10px;" />
                  <input type="submit" name="button2" id="button2" value="Bỏ qua" class="btnadmin" /></td>
             </tr>
            </table>

    </div>
        <div id="tab4" class="tab_content">
            <table width="100%" border="0" cellpadding="4">
              <tr>
                <td width="120"> <strong>Upload path</strong> </td>
                <td><input type="text" name="setting_item[upload_media_path]" class="textbox" value="{upload_media_path}" /></td>
              </tr>
             <tr>
                  <td align="left" valign="top"><strong>Ki&#7875;u upload <BR>
               (Khi c&oacute; file tr&ugrave;ng t&ecirc;n tr&ecirc;n server)</strong></td>
                  <td align="left"><input name="setting_item[upload_mode]" type="radio" value="1" {upload_mode_1} />
                    Ghi &#273;&#232; file<br />
                    <input name="setting_item[upload_mode]" type="radio" value="2" {upload_mode_2}/>
                    Ghi file v&#7899;i t&ecirc;n kh&aacute;c<br />
                  <input name="setting_item[upload_mode]" type="radio" value="3" {upload_mode_3}/>
                  Kh&ocirc;ng ghi file m&#7899;i</td>
                </tr>
                <tr>
                  <td align="left" valign="top"><strong>Ki&#7875;u file cho ph&eacute;p</strong></td>
                  <td align="left"><textarea name="setting_item[allowed_mediatypes]" class="textarea" rows="5">{allowed_mediatypes}</textarea></td>
                </tr>
                <tr>
                  <td align="left" valign="top"><strong>C&#7905; file max</strong></td> 
                  <td align="left"><input type="text" name="setting_item[max_media_size]" style="width:100px" class="textbox"  value="{max_media_size}" /> 
                  KB </td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                <td><input type="submit" name="button" id="button" value="Lưu" class="btnadmin" style="padding-left:10px; padding-right:10px;" />
                  <input type="submit" name="button2" id="button2" value="Bỏ qua" class="btnadmin" /></td>
              </tr>
          </table>
    </div>
        <div id="tab5" class="tab_content">
              <table width="100%" border="0" cellpadding="4">
              <tr>
                <td width="120"> <strong>Document root</strong> </td>
                <td><input type="text"  name="setting_item[document_root]" class="textbox" value="{document_root}" /><br />DOCUMENT_ROOT: {root} (kh&#244;ng "/" &#7903; cu&#7889;i)</td>
              </tr>
              <tr>
                <td><strong>Dir path</strong></td>
                <td><input type="text" name="setting_item[dir_path]" class="textbox" value="{dir_path}" />
                <br />
      Tr&#432;&#7901;ng h&#7907;p d&#249;ng &#273;&#432;&#7901;ng d&#7851;n http://tendomain.com/tenthumuc th&#236; Dir_path l&#224; /tenthumuc,<br /> n&#7871;u d&#249;ng http://tendomain.com th&#236; Dir_path &#273;&#7875; r&#7895;ng 
                </td>
              </tr>
              <tr>
                <td><strong>Http host (http://)</strong></td>
                <td><input type="text" name="setting_item[http_host]" class="textbox" value="{http_host}" />
                </td>
              </tr>
              <tr>
                <td> <strong>SMTP host </strong></td>
                <td><input type="text" name="setting_item[smtp_host]" class="textbox" value="{smtp_host}" /></td>
              </tr>
              <tr>
                <td><strong> SMTP username </strong></td>
                <td><input type="text" name="setting_item[smtp_username]" class="textbox" value="{smtp_username}" /></td>
              </tr>
              <tr>
                <td> <strong>SMTP password </strong></td>
                <td><input type="password" name="setting_item[smtp_password]" class="textbox" value="{smtp_password}" /></td>
              </tr>
              <tr>
                <td><strong> Định dạng ngày tháng </strong></td>
                <td><input type="text" name="setting_item[date_format]" class="textbox"  value="{date_format}" /></td>
              </tr>
              <tr>
                <td><strong> Định dạng giờ </strong></td>
                <td><input type="text" name="setting_item[time_format]" class="textbox" value="{time_format}" /></td>
              </tr>
              <tr>
                <td><strong> Time offset </strong></td>
                <td><label>
      {select_time_offsets}
      Th&#7901;i gian hi&#7879;n t&#7841;i trong h&#7879; th&#7889;ng: {currentdate} </label></td>
              </tr>
              <tr>
                <td><strong> Dùng nén GZip </strong></td>
                <td><input type="radio" name="setting_item[gz_compress]"  value="1" {gz_compress_yes}>&nbsp;C&#243;&nbsp;<input type="radio" name="setting_item[gz_compress]" value="0" {gz_compress_no}>&nbsp;Kh&#244;ng</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><input type="submit" name="button" id="button" value="Lưu" class="btnadmin" style="padding-left:10px; padding-right:10px;" />
                  <input type="submit" name="button2" id="button2" value="Bỏ qua" class="btnadmin" /></td>
              </tr>
          </table>
        </div>
      </form>
    </div>
      <script type="text/javascript">
			$(document).ready(function() {
				$(".tab_content").hide(); 
				$("ul.tabs li:first").addClass("active").show(); 
				$(".tab_content:first").show(); 
				$("ul.tabs li").click(function() {
					$("ul.tabs li").removeClass("active"); 
					$(this).addClass("active");
					$(".tab_content").hide(); 
					var activeTab = $(this).find("a").attr("href"); 
					$(activeTab).fadeIn();
					return false;
				});
			});
		</script>    
         